<?php
/*------------------------------------------------------------------------
# com_ilike - XIPAT Like Article Component
# version: 1.0
# ------------------------------------------------------------------------
# author    Duong Tien Dung - www.xipat.com
# copyright Copyright (C) 2013 www.xipat.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.xipat.com
# Technical Support:  http://www.xipat.com/support.html
-------------------------------------------------------------------------*/
// no direct access

defined('_JEXEC') or die;

jimport('joomla.application.component.controller');

/**
 * Xp_like master display controller.
 *
 * @package		Joomla.Administrator
 * @subpackage	com_ilike
 * @since		1.6
 */
class ilikeController extends JControllerLegacy
{
	public $default_view = 'xplikes';
	
	/**
	 * Method to display a view.
	 *
	 * @param	boolean			If true, the view output will be cached
	 * @param	array			An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
	 *
	 * @return	JController		This object to support chaining.
	 * @since	1.5
	 */
	public function display($cachable = false, $urlparams = false)
	{
		require_once JPATH_COMPONENT.'/helpers/ilike.php';

		// Load the submenu.
		ilikeHelper::addSubmenu(JRequest::getCmd('view', 'xplikes'));

		parent::display();

		return $this;
	}
}
